package com.crm.manager.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.crm.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.time.LocalDate;
import java.util.HashMap;
import java.util.Map;

@Data
public class TransferPageDTO {
    private Integer pageNum;
    private Integer pageSize;
    private String userName;
    private String phonenumber;
    //    @JsonFormat(pattern = "yyyy-MM-dd")
//    private LocalDate beginTime;
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    private LocalDate endTime;
//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private Map<String, Object> params;
    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
